package com.atguigu.dao;

import com.atguigu.pojo.Setmeal;
import com.github.pagehelper.Page;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface SetmealDao {
    Page<Setmeal> findPage(String queryString);

    void add(Setmeal setmeal);

    void setSetmealAndTravelGroup(HashMap<Object, Object> map);

    Setmeal findById(Integer id);

    List<Setmeal> findAll();

    List<Integer> findTravelgroupIdBySetmealId(Integer id);

    void update(Setmeal setmeal);

    void deleteAllTravelgroupIdBySetmealId(Integer id);

    Integer selectConutById(Integer id);

    Setmeal selectById(Integer id);

    void deleteById(Integer id);

    String selectImgById(Integer id);

    Setmeal findSetmealById(Integer id);

    List<Map<String, Object>> findSetmealNamesAndSetmealCount();

    List<Map<String, Object>> findSetmealNamesAndSetmealCountAndPercentage();
}
